package itdep.domain.profile;

import itdep.domain.IisEntity;
import org.hibernate.annotations.Parameter;
import org.hibernate.annotations.Type;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Ivan Khalopik
 * @version $Revision: 5 $ $Date: 2010-06-11 15:20:19 +0300 (Птн, 11 Июн 2010) $
 */
@Entity
@Table(name = "CONTACT")
public class Contact extends IisEntity {

	@Type(type = "ga.hibernate.OrderedEnumUserType", parameters = {@Parameter(name = "enumClass", value = "itdep.domain.profile.ContactType")})
	@Column(name = "CONTACT_TYPE", nullable = false)
	private ContactType contactType = ContactType.UNKNOWN;

	@Column(name = "CONTACT_VALUE", nullable = false)
	private String contactValue;

	public String getContactValue() {
		return contactValue;
	}

	public void setContactValue(String contactValue) {
		this.contactValue = contactValue;
	}

	public ContactType getContactType() {
		return contactType;
	}

	public void setContactType(ContactType contactType) {
		this.contactType = contactType;
	}
}